/**
 * @Date 2023-02-21 14:24:10
 * @Remark
 */

// API -------------------------------------------------------------

export const API_DASHBOARD_USER_BASIC: Api = {
  title: "首页数据",
  path: "user/home",
  method: "POST",
  controller: "首页数据",
};
export const API_DASHBOARD_ADMIN_BASIC: Api = {
  title: "首页数据",
  path: "admin/home",
  method: "POST",
  controller: "首页数据",
};
export const API_DASHBOARD_HOT_BORROW: Api = {
  title: "热门借阅",
  path: "borrow/getHotBorrow",
  method: "POST",
  controller: "首页数据",
};
export const API_DASHBOARD_HOT_ORDER: Api = {
  title: "热门预约",
  path: "order/getHotOrder",
  method: "POST",
  controller: "首页数据",
};
// data
export interface DashboardAdminData {
  userCount: number
  borrowCount: number
  orderCount: number
  illegalCount: number
  bookCount: number
  copyCount: number
  borrowedCount: number
  illegal: number
}
export interface DashboardUserData {
  borrowCount: number
  orderCount: number
  illegalCount: number
  lost: number
  expiry: number
  damage: number
}